package org.chainsale.prefuse.action;

import java.util.Iterator;

import prefuse.Constants;
import prefuse.Visualization;
import prefuse.action.Action;
import prefuse.util.PrefuseLib;
import prefuse.visual.VisualItem;

public class VisabilityActivity extends Action {
	String nodes = Visualization.ALL_ITEMS;
	
	public void run(double frac) {
		// Need to set all visable.
		Iterator items = m_vis.items(nodes);
        while ( items.hasNext() ) {
        	Object o = items.next();
        	if (o instanceof VisualItem) {
	            VisualItem item = (VisualItem)o;
	            item.setDOI(Constants.MINIMUM_DOI);
	            PrefuseLib.updateVisible(item, true);
	            item.setExpanded(false);
	        }
        }
	}
	
	
}
